<?php

class TestWakKitCfg extends UnitTestCase {

    function testKit() {
        $cfg=new WakKitCfg('webappkit.testkit');

        $this->assertEqual($cfg->getVersion(),'0.13');
        $this->assertEqual($cfg->getClass(),'runkit');
        $this->assertEqual($cfg->getPhpRange(),'4.3-5.*');
        $this->assertEqual($cfg->getDescription(),
            'This kit is used for webappkit.core unit tests');
        $this->assertEqual($cfg->getDependencies()
            ,array('webappkit.core'=>'*'));

    }

    function testLibKit() {
        $cfg=new WakKitCfg('webappkit.testkit.libkit');
        $this->assertEqual($cfg->getClasses()
            ,array('someclass'=>'someclass.class.php*'));
    }

    function testRunKit() {
        $cfg=new WakKitCfg('webappkit.testkit.runkit');
        $this->assertEqual($cfg->getFiles()
            ,array('runkit.class.php*'));
    }
}